import { ChannelSaveList, ChannelSetId } from "./../action/actionTypes";
const initialState = {
  list: [],
  id: 0,
};

const channelReducer = (state = initialState, { type, payload }) => {
  switch (type) {
    case ChannelSaveList:
      return { ...state, list: payload };

    case ChannelSetId:
      return { ...state, id: payload };
    default:
      return state;
  }
};

export default channelReducer;
